from django.db import models


# Create your models here.
class Contact(models.Model):
    name = models.CharField(max_length=100)
    gender = models.CharField(max_length=6, choices=(('男', '男'), ('女', '女')), default='男')
    phone = models.CharField(max_length=11)
    pub_date = models.DateTimeField('date published', auto_now_add=True)

    def __str__(self):
        return self.name
